package com.ruoyi.applet.mapper;

import com.ruoyi.applet.domain.Goods;
import com.ruoyi.applet.domain.vo.ProductSpecifications;
import com.ruoyi.applet.domain.vo.UsrBrowseVo;
import com.ruoyi.applet.domain.vo.UsrLikeBrowse;
import com.ruoyi.applet.domain.vo.UsrOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商品Mapper接口
 * 
 * @author ruoyi
 * @date 2024-11-14
 */
public interface GoodsMapper 
{
    List<UsrBrowseVo> selectAllByGoodsImgIdList(@Param("usrId") Long usrId);

    List<UsrBrowseVo> selectAllByGoodsIdList(@Param("goodsId") Long goodsId);

    Goods selectAllByGoodsId(@Param("goodsId") Long goodsId);

    ProductSpecifications selectAllByGoodsIdSpecifications(@Param("specValue1") String specValue1 ,
                                                           @Param("specValue2") String specValue2 ,
                                                           @Param("specValue3") String specValue3 ,
                                                           @Param("goodsId") Long goodsId);

    UsrLikeBrowse selectAllByImagesUrlUsrLikeBrowse(@Param("goodsId") Long goodsId);

    UsrOrder selectAllByProductSpecId(@Param("productSpecId") Long productSpecId);
}
